package com.backstage.entity.po;

import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 
 * </p>
 *
 * @author wangkun
 * @since 2017-11-16
 */
@TableName("sys_permission")
public class SysPermission  extends BasePoEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableField(value="id")
	private Integer id;
    /**
     * 资源名称
     */
    @TableField(value="name")
	private String name;
    /**
     * 资源类型：menu,button,
     */
    @TableField(value="type")
	private String type;
    /**
     * 访问url地址
     */
    @TableField(value="url")
	private String url;
    /**
     * 权限代码字符串
     */
    @TableField(value="percode")
	private String percode;
    /**
     * 父结点id
     */
    @TableField(value="parentid")
	private Integer parentid;
    /**
     * 父结点id列表串
     */
    @TableField(value="parentids")
	private String parentids;
    /**
     * 排序号
     */
    @TableField(value="sortstring")
	private String sortstring;
    /**
     * 是否可用,1：可用，0不可用
     */
    @TableField(value="available")
	private String available;

    /**
     * 是否是快捷菜单
     */
	@TableField("is_shortcut_menu")
	private Integer isShortcutMenu;
	
    /**
     * 分子菜单
     */
    private List<SysPermission> subMenus;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getPercode() {
		return percode;
	}

	public void setPercode(String percode) {
		this.percode = percode;
	}

	public Integer getParentid() {
		return parentid;
	}

	public void setParentid(Integer parentid) {
		this.parentid = parentid;
	}

	public String getParentids() {
		return parentids;
	}

	public void setParentids(String parentids) {
		this.parentids = parentids;
	}

	public String getSortstring() {
		return sortstring;
	}

	public void setSortstring(String sortstring) {
		this.sortstring = sortstring;
	}

	public String getAvailable() {
		return available;
	}

	public void setAvailable(String available) {
		this.available = available;
	}

	public List<SysPermission> getSubMenus() {
		return subMenus;
	}

	public void setSubMenus(List<SysPermission> subMenus) {
		this.subMenus = subMenus;
	}
    
	public Integer getIsShortcutMenu() {
		return isShortcutMenu;
	}

	public void setIsShortcutMenu(Integer isShortcutMenu) {
		this.isShortcutMenu = isShortcutMenu;
	}

	@Override
	public String toString() {
		return "SysPermission{" +
			", id=" + id +
			", name=" + name +
			", type=" + type +
			", url=" + url +
			", percode=" + percode +
			", parentid=" + parentid +
			", parentids=" + parentids +
			", sortstring=" + sortstring +
			", available=" + available +
			"}";
	}
}
